<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
	
	<!-- 下面是点击页数的js -->
	<link  rel="stylesheet" type="text/css" href="assets/plugins/bootstrap/css/bootstrap.css"/>
	<link href="assets/css/style.css" rel="stylesheet"/>
	<script type="text/javascript" src="assets/js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="assets/js/tiezi/fenye.js"></script>
	<style type="text/css">
		
		body {
                padding-top:60px;
                padding-bottom:40px;
            }
	</style>
  </head>
  
  <body>
  
  	<jsp:include page="../Template/home_top.jsp"></jsp:include>
  	<div class="mainbox container">
  			<div class="row">
  				<div class="span9">
  						<h3>本站所有帖子列表</h3>
					    <br>
					     <div align="center">
					     	<form action="tieziAction_getAllTiesByFenye.action" id="pageForm" method="post">
					     		<input type="hidden" id="page" name="curPage">
					     	</form>
					    	<div align="center">
					    		<%
					    			Integer str =(Integer) request.getAttribute("pageCount");
					    			int count = str.intValue();
					    			for(int i = 1 ;i <=count;i++){
					    		%>
					    			<input type="button" class="btn btn-info btn-mini " value="<%= i %>">
					    		<%
					    			}
					    		 %>
					 
					    	</div>
					    </div>
					    <div id="showallties" align="center">
					    	<table  class="table table-hover table-strip table-border">
					    		<thead>
					    			<tr>
					    				<td>&nbsp;标题&nbsp;</td>
					    				<td>发帖人</td>
					    				<td>发帖人的角色</td>
					    				<td>发帖时间</td>
					    			</tr>
					    		</thead>
					    		
					    		 <s:iterator value="allties_list">
					    			<tr>
					    				<td><a href="tzReplyAction_GetSingleTieAndReply.action?replyer=${member.name}&tiezi_id=${id}&curPage=1"><s:property value="tags"/></a></td>
								    	<td><s:property value="member.name"/></td>
								    	<td><s:property value="member.role"/></td>
								    	<td><s:date name="postdate" format="yyyy-MM-dd HH:mm:ss" /></td>
							    	</tr>
							    </s:iterator>
					    	</table>
					    </div>
					  	</div>
	  				<div class="span3">
	  				
	  					<div class="well">
		            		<div class="">
		            			<h3>管理入口</h3>
		            		</div>
		            		<div class="">
		            			<a href="member_memberCenter">用户中心</a>
			                    <br>
			                    <a href="admin/member_memberList">管理员中心</a>
		            		</div>
		            	</div>
	  				</div>
		  		</div>
		  	</div>
   <jsp:include page="../Template/home_footer.jsp"/>
